package com.mycompany.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.mycompany.dao.CommonDao;
import com.mycompany.dao.DistrictDao;
import com.mycompany.entity.District;

@Service
public class DistrictServcieImpl extends DefaultCommonService<Long, District> implements DistrictServcie {
	@Autowired
	private DistrictDao districtDao;
	
	@Override
	public District getDistrictByName(String dName) {
		return districtDao.getDistrictByName(dName);
	}

	@Override
	protected CommonDao<Long, District> getDao() {
		return districtDao;
	}

}
